<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%-- Declare the core library --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login page</title>
</head>
<body>

<form action="./?cmd=Login" method="post">
    login:
	<input type="text" name="login"/>
	
	<c:if test="${not empty requestScope.errorMap['login']}">
		<span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['login']}" />
	    </span>
    </c:if>
	<br/>
	password:
	<input type="password" name="password"/>
	<c:if test="${not empty requestScope.errorMap['password']}">
	    <span style="color: #FF0000">
	    	<c:out value="${requestScope.errorMap['password']}" />
	    </span>
    </c:if>	
	<br/>
	<input type="submit" value="ok"/>
</form>
&nbsp
<a href="./?cmd=InputCreateUser">Create account</a>
</body>
</html>